<template>
	<view>
		<!-- 返回顶部 -->
		<view class="" v-if="isshow">
			<image src="/static/images/sy_slices/top.png" mode="" class="test" @click="pageScrollTo"></image>
		</view>
		
	</view>
</template>

<script>
	export default {
		name: "backtop",
		data() {
			return {
				isshow: false

			};
		},
		methods: {
			pageScrollTo() {
				uni.pageScrollTo({
					scrollTop: 0,
					duration: 0,
				})
			},
		},
	}
</script>

<style>
	.test {
		position: fixed;
		right: 24px;
		z-index: 301;
		bottom: 60px;
		width: 82rpx;
		height: 82rpx;
		background: #228DFF;
		background-size: 100% 100%;
		border-radius: 50%;
	}
</style>